package com.czhi.consumer.controller;


import com.czhi.common.ServiceApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/consumer")
public class ConsumerController {


    @Autowired
    @Qualifier("gettingService")
    private ServiceApi serviceApi;



    @GetMapping("/call")
    public String getMessage(){
        return serviceApi.getMessage();
    }
    @GetMapping("test")
    public String getInfo(){
        return "hello";
    }
}
